/**
 * 
 */
package org.t2.game.server.module.bag.model;

import java.util.HashMap;
import java.util.Map;

import org.banish.sql.core.annotation.Column;
import org.banish.sql.core.annotation.Table;
import org.banish.sql.core.annotation.enuma.AsyncType;
import org.gaming.service.repository.annotation.JvmCache;
import org.gaming.service.service.jvm.PlayerOneToOneEntity;
import org.springframework.stereotype.Repository;
import org.t2.game.server.module.data.saver.IPlayerData;

/**
 * 
 */
@Repository
@JvmCache
@Table(comment = "玩家背包表", dbAlias = "game", asyncType = AsyncType.INSERT)
public class Bag extends PlayerOneToOneEntity implements IPlayerData {
	@Column(comment = "金币")
	private long gold;
	@Column(comment = "钻石")
	private long diamond;
	@Column(comment = "体力")
	private long muscle;
	@Column(comment = "积分")
	private long point;
	@Column(comment = "鹅毛")
	private long feather;
	@Column(name = "hero_num", comment = "英雄数量")
	private long heroNum;
	@Column(name = "weapon_summon", comment = "武器召唤数量")
	private long weaponSummon;
	@Column(name = "weapon_num", comment = "武器数量")
	private long weaponNum;
	@Column(name = "treasure_summon", comment = "宝藏召唤数量")
	private long treasureSummon;
	@Column(name = "treasure_num", comment = "宝藏数量")
	private long treasureNum;
	@Column(comment = "背包详情", extra = "text")
	private Map<Integer, Long> items = new HashMap<>();
	
	public long getGold() {
		return gold;
	}
	public void setGold(long gold) {
		this.gold = gold;
	}
	public long getDiamond() {
		return diamond;
	}
	public void setDiamond(long diamond) {
		this.diamond = diamond;
	}
	public long getMuscle() {
		return muscle;
	}
	public void setMuscle(long muscle) {
		this.muscle = muscle;
	}
	public long getPoint() {
		return point;
	}
	public void setPoint(long point) {
		this.point = point;
	}
	public long getFeather() {
		return feather;
	}
	public void setFeather(long feather) {
		this.feather = feather;
	}
	public long getHeroNum() {
		return heroNum;
	}
	public void setHeroNum(long heroNum) {
		this.heroNum = heroNum;
	}
	public long getWeaponSummon() {
		return weaponSummon;
	}
	public void setWeaponSummon(long weaponSummon) {
		this.weaponSummon = weaponSummon;
	}
	public long getWeaponNum() {
		return weaponNum;
	}
	public void setWeaponNum(long weaponNum) {
		this.weaponNum = weaponNum;
	}
	public long getTreasureSummon() {
		return treasureSummon;
	}
	public void setTreasureSummon(long treasureSummon) {
		this.treasureSummon = treasureSummon;
	}
	public long getTreasureNum() {
		return treasureNum;
	}
	public void setTreasureNum(long treasureNum) {
		this.treasureNum = treasureNum;
	}
	public Map<Integer, Long> getItems() {
		return items;
	}
	public void setItems(Map<Integer, Long> items) {
		this.items = items;
	}
}
